//
//  VideoCell.m
//  JK九酷云头条
//
//  Created by admin on 2017/8/16.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "VideoCell.h"
#import "VideoModel.h"
#import <UIImageView+WebCache.h>

@interface VideoCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;//标题
@property (weak, nonatomic) IBOutlet UIImageView *imgsrcImageView;//图像
@property (weak, nonatomic) IBOutlet UILabel *pvLabel;//数量
@property (weak, nonatomic) IBOutlet UILabel *uptimeLabel;//时间
@property (weak, nonatomic) IBOutlet UIImageView *PlayImage;


@end
@implementation VideoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setVideo:(LSZDetailsVideoSelectionMg *)video{
    self.titleLabel.text = video.title;
    [self.imgsrcImageView sd_setImageWithURL:[NSURL URLWithString:video.pic_url] placeholderImage:[UIImage imageNamed:@"大的默认图片"]];
    self.pvLabel.text =  [NSString stringWithFormat:@"%@",video.source];
    self.uptimeLabel.text = video.uptime;
}

@end
